import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';

@Entity()
export class Article {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ comment: '文章标题' })
  title: string;

  @Column({ type: 'longtext', comment: '文章内容' })
  content: string;

  @Column({ comment: '原始文件名' })
  filename: string;

  @CreateDateColumn({ comment: '上传时间' })
  uploadTime: Date;
} 